﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Village.Master" AutoEventWireup="true" CodeBehind="ServiceRecord.aspx.cs" Inherits="Village_Project.ServiceRecord" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">

        .style2
        {
            width: 100%;
        }
        </style>
        
<!-- 
	After you copied those 2 lines of code , make sure you take also the files into the same folder :-)
    Next step will be to set the appropriate statement to "start-up" the calendar on the needed HTML element.
    
    The first example of Javascript snippet is for the most basic use , as a popup calendar
    for a text field input.
-->


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">



 <div id="page">
        <div id="content">
            <div class="post">
            <link rel="stylesheet" type="text/css" media="all" href="Style/jsDatePick_ltr.min.css" />
            <script type="text/javascript" src="JQuery/jsDatePick.min.1.3.js"></script>
            <!--Script-->
            <script type="text/javascript">
                window.onload = function () {
                    new JsDatePick({
                        useMode: 2,
                        target: "inputField",
                        dateFormat: "%d/%m/%Y",
                        cellColorScheme: "beige",
                        imgPath: "img/"
                    });
                };
            </script>

                <h3>
                    บันทึกการให้บริการ </h3>
         
                <br />
                  <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
                <asp:Panel ID="Panel1" runat="server" 
                    GroupingText="ประวัติการให้บริการของเด็กคนนี้">
                    <asp:GridView ID="showrec" runat="server" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" CssClass="style5" 
                    ForeColor="Black" onpageindexchanging="familylist_SelectedIndexChanged" 
                    Width="587px">
                        <Columns>
                            <asp:TemplateField HeaderText="บริการครั้งที่">
                                <ItemTemplate>
                                    <%# Container.DataItemIndex + 1 %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:HyperLinkField DataNavigateUrlFields="CID,PS" 
                            DataNavigateUrlFormatString="~/ServiceRecord.aspx?CID={0}&amp;Ps={1}" 
                            DataTextField="PSDateTime" HeaderText="วันเวลา" />
                        </Columns>
                        <AlternatingRowStyle BackColor="White" />
                        <EditRowStyle BackColor="#2461BF" />
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerSettings FirstPageText="First" LastPageText="Last" 
                        Mode="NumericFirstLast" PageButtonCount="3" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#EFF3FB" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#F5F7FB" />
                        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                        <SortedDescendingCellStyle BackColor="#E9EBEF" />
                        <SortedDescendingHeaderStyle BackColor="#4870BE" />
                    </asp:GridView>
                </asp:Panel>
         
                <br />
                <br />
                <asp:Panel ID="Panel2" runat="server" GroupingText="รายละเอียดการให้บริการ">
                    <asp:GridView ID="showrecinfo" runat="server" 
    AutoGenerateColumns="False">
                        <Columns>
                          
                            <asp:BoundField DataField="dec" HeaderText="ชื่อบริการ" />
                            <asp:BoundField DataField="Note" HeaderText="รายละเอียด" />
                        </Columns>
                        <AlternatingRowStyle BackColor="White" />
                        <EditRowStyle BackColor="#2461BF" />
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#EFF3FB" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#F5F7FB" />
                        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                        <SortedDescendingCellStyle BackColor="#E9EBEF" />
                        <SortedDescendingHeaderStyle BackColor="#4870BE" />
                    </asp:GridView>
                    <br />
                    <asp:Button ID="back" runat="server" onclick="back_Click" Text="กลับ" />
                </asp:Panel>
                <br />
                <br />
         
                <asp:Panel ID="Panel3" runat="server" 
                    GroupingText="เลือกบริการที่ต้องการบันทึก">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
                        <Columns>
                            <asp:BoundField DataField="SVCCode" HeaderText="รหัส" />
                            <asp:BoundField DataField="SVCDesc" HeaderText="บริการ" />
                            <asp:TemplateField HeaderText="วันเป้าหมาย">
                                <HeaderTemplate>
                                    เลือก
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="CaseSelector3" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="note">
                                <HeaderTemplate>
                                    ระบุรายละเอียด
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:TextBox ID="TextBox3" runat="server" HeaderText="note" Text=""></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <AlternatingRowStyle BackColor="White" />
                        <EditRowStyle BackColor="#2461BF" />
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#EFF3FB" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#F5F7FB" />
                        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                        <SortedDescendingCellStyle BackColor="#E9EBEF" />
                        <SortedDescendingHeaderStyle BackColor="#4870BE" />
                    </asp:GridView>
                    <br />
                    <asp:Label ID="SelectStat" runat="server" Text="Label" Visible="False"></asp:Label>
                    <br />
                    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="บันทึก" />
                    <br />
                </asp:Panel>
         </ContentTemplate>
    </asp:UpdatePanel>
                <br />
                <br />
                <br />
                <br />
                <br />
         
                </div>
            <br />    
            </div>



        <div id="sidebar">
		<ul>
			<li>
				<h2>บันทึกการให้บริการ</h2>
					<ul>
                     
                                    
                                             <li><a href="ServiceRecord.aspx" class="current">บันทึกการให้บริการ</a></li>
                                           <li><asp:Image ID="Image1" runat="server" Height="162px" Width="179px" /></li>
					</ul>
				</li>
			</ul>
        </div>


    </div>
</asp:Content>
